package threads.lockunlock;

public class ThreadForSyncMethod extends Thread
{

	private SomeService service;
	private int amount;
	
	public ThreadForSyncMethod(String name, SomeService service, int amount)
	{
		setName(name);
		this.service = service;
		this.amount = amount;
		
	}
	
	
	@Override
	public void run()
	{
		service.doSynchronized(amount);
	}
}
